package cn.sylinx.horm.example.section6;

import java.util.Map;

import cn.sylinx.horm.config.ParseSqlType;
import cn.sylinx.horm.core.common.Page;
import cn.sylinx.horm.example.entity.MyExample6;
import cn.sylinx.horm.proxy.annotation.PageNumber;
import cn.sylinx.horm.proxy.annotation.PageSize;
import cn.sylinx.horm.proxy.command.annotation.Command;
import cn.sylinx.horm.proxy.command.annotation.Resource;

@Command
public interface TestPageCommand {

    @Resource(sql = SqlConsts.TEST_PAGE_AV, parseSqlType = ParseSqlType.AVIATOR)
    Page<MyExample6> queryPage(Map<String, Object> param, @PageNumber int pageNumber, @PageSize int pageSize);
}
